body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: white;
  background-color: rgb(20, 20, 20);
  height: 100%;
  overflow-x: hidden;
}

* {
    -webkit-tap-highlight-color: transparent; /* Entfernt den blauen Tap-Effekt auf mobilen Geräten */
}

/* Scrollbar-Styling */
.scroll-container::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #3a3a3a, #3a3a3a);
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2C2C2C, #181818);
  border-radius: 10px;
  border: 2px solid #202020;
  transition: 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2C2C2C, #181818);
}

body {
  scrollbar-width: auto;
  scrollbar-color: #181818 #3a3a3a;
}

/* Text-Styling */
.TopperBody {
  display: flex;
  justify-content: center;
  font-size: 2em;
  color: white;
  margin-top: 100px;
}

.TopperBody span{
  color: #e84c43;
}

.portfolio-section {
  padding: 25px 20px;
  position: relative;
}

.portfolio-section h1 {
  text-align: center;
  font-size: 3em;
  color: #e84c43;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInDown 1s ease-out;
}

.portfolio-wrapper {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px 0;
  gap: 20px;
  scroll-snap-type: x mandatory;
}

.portfolio-wrapper::-webkit-scrollbar {
  height: 10px;
}

.portfolio-wrapper::-webkit-scrollbar-track {
  background: #3a3a3a;
}

.portfolio-wrapper::-webkit-scrollbar-thumb {
  background: #2C2C2C;
  border-radius: 5px;
}

.portfolio-item {
  display: inline-block;
  min-width: 500px;
  height: auto;
  margin-right: 20px;
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: slideIn 1s ease-out forwards;
  opacity: 0;
}

.portfolio-item:nth-child(odd) {
  animation-delay: 0.2s;
}

.portfolio-item:nth-child(even) {
  animation-delay: 0.4s;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item p {
  margin-top: 15px;
  font-size: 2em;
  color: white;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.portfolio-item:hover p {
  color: #ff3f00;
}

/* Animation für Portfolio-Items */
@keyframes slideIn {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Weitere Projekte */
.portfolio-rest-section {
  padding: 50px 20px;
  margin-top: 50px;
}

.portfolio-rest-section h2 {
  text-align: center;
  font-size: 2.5em;
  color: #e84c43;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out;
}

.rest-portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 20px;
  animation: fadeInUp 1.5s ease-out;
}

.rest-item {
  background-color: #2a2a2a;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: slideIn 1.5s ease-out forwards;
  opacity: 0;
}

.rest-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.5);
}

.rest-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.rest-item:hover img {
  transform: scale(1.08);
}


.rest-item p {
  margin-top: 10px;
  font-size: 1.1em;
  color: white;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.rest-item:hover p {
  color: #ff3f00;
}

/* Animation für weitere Projekte */
@keyframes fadeInDown {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


@media (max-width: 768px) {
  .TopperBody h2 {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .portfolio-item {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .TopperBody h2 {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 1.3em;
  }

  .portfolio-section h1{
  	font-size: 2em;
  }
  
  .portfolio-item {
    min-width: 230px;
  }
  
  .info-container{
  	font-size: 0.8em;
  }
}

@media (max-width: 550px) {
  .TopperBody h2 {
    display: flex;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .rest-portfolio {
    grid-template-columns: 1fr;
  }

  .rest-item p {
    font-size: 1em; 
  }
}


@media (max-width: 480px) {
  .rest-item p {
    font-size: 0.9em; 
  }
  
  .portfolio-wrapper h1 {
    font-size: 2em; 
  }
  
  .rest-item p {
    font-size: 0.9em;
  }
}

.info-container {
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  margin-top: 15px; 
  gap: 10px; 
}


.info-container p {
  font-size: 1.5em;
  color: white;
  margin: 0; 
}


.pdf-download {
  font-size: 1.1em;
  color: #e84c43;
  text-decoration: none;
  border: 2px solid #e84c43; 
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pdf-download:hover {
  background-color: #e84c43;
  color: white;
}

.download-button {
  display: inline-block;
  padding: 15px 30px;
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(90deg, #e84c43, #ff6f00);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  width: 200px;  
  height: 45px;  
  transform-origin: center;
  display: flex;
  justify-content: center;
  align-items: center; 
  transform-origin: center;
}

.download-button span {
  position: relative;
  z-index: 2;
  color: white;
}

.download-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
}

.download-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.download-button:hover {
  background: linear-gradient(90deg, #f07468, #e84c43); 
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.3);
}

.download-button:hover span {
  letter-spacing: 2px; 
  transform: scale(1s);
  transition: transform 0.4s ease;
}

.download-button:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
}

.download-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.download-button:hover::after {
  opacity: 1;
  transform: scale(1.1); /* Glanzeffekt nach außen */
  border-radius: 50px;
}